﻿#region Using

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.Caching;
using System.Xml;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using Asah.SiteWorx.BlogEngine.Core;

#endregion

public partial class Blog_Widgets_CatagoryList_Widget : WidgetBase
{

    public override string Name
    {
        get { return "Category list"; }
    }

    public override bool IsEditable
    {
        get { return true; }
    }

    public override void LoadWidget()
    {
        StringDictionary settings = GetSettings();
        bool showRssIcon = true;
        bool showPostCount = true;
        if (settings.ContainsKey("showrssicon"))
        {
            bool.TryParse(settings["showrssicon"], out showRssIcon);
            bool.TryParse(settings["showpostcount"], out showPostCount);
        }

        uxCategoryList.ShowRssIcon = showRssIcon;
        uxCategoryList.ShowPostCount = showPostCount;
    }
}
